/**
 * Copyright(c) kyle.
 */
package org.example.general.reflection;

import lombok.*;

import java.util.Map;

/**
 * @author kyle
 * @version 1.00.00
 * @since [2020-09-27 10:23]
 * @updateUser [Kyle]
 * @updateRemark [说明本次修改内容]
 * @date [2020-09-27 10:23]
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TransactionalService(name = "Dog")
@TableKyle(name="Dog")
public class Dog extends Animal {
    @FieldKyle(colName = "f_legs",type = "int")
    private int legs;

    @Override
    public void run() {
//        System.out.println("Dog run");
    }

    public Dog(final String name, final long id, final int age, final int pLegs) {
        super(name, id, age);
        legs = pLegs;
    }

    @Override
    public void methodWithParams(final String name) {
        System.out.println(name);
    }


    public Map<String, Integer> getMap(Map<String, Integer> keyy) {
        return keyy;
    }
}
